package com.zyl.shardingsphere.demos.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zyl.shardingsphere.demos.web.mapper.UserMapper;
import com.zyl.shardingsphere.demos.web.po.TUser;
import com.zyl.shardingsphere.demos.web.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author zyl
 * @description
 * @since 2024/6/28
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, TUser> implements UserService {

    @Resource
    private UserMapper userMapper;

    public void saveMy(TUser entity) {
        userMapper.insertMy(entity.getUserId(),entity.getUserName());
    }
}
